package com.twb.auth.entity.twbOrganization.vo;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import com.twb.core.base.entity.vo.PageVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName SearchTwbOrganizationVo
 * @Description 
 * @author DSY
 * @date 2018年11月15日 上午10:06:12
 */
@ApiModel(value = "SearchTwbOrganizationVo", description = "/sys/twbOrganization/search 入参对象")
public class SearchTwbOrganizationVo extends PageVo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private String id;

	/**
	 * 父级编码
	 */
	private String parentOrgId;

	/** 查询KEY */
	@ApiModelProperty(value = "查询KEY")
	private String searchKey;

	/**
	 * 机构编码
	 */
	private String code;

	/**
	 * 机构名称
	 */
	private String name;

	/**
	 * 机构图标
	 */
	private String iconCls;

	/**
	 * 机构地址
	 */
	private String address;

	/**
	 * 机构类型
	 */
	private String orgType;

	/**
	 * 是否查询所有子节点（1-是，2-否）
	 */
	@ApiModelProperty(value = "是否查询所有子节点")
	private boolean isAllChildNode;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentOrgId() {
		return parentOrgId;
	}

	public void setParentOrgId(String parentOrgId) {
		this.parentOrgId = parentOrgId;
	}

	/** 查询KEY */
	public String getSearchKey() {
		return searchKey;
	}

	/** 查询KEY */
	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}

	public String getCode() {
		if (StringUtils.isBlank(code)) {
			return null;
		}
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		if (StringUtils.isBlank(name)) {
			return null;
		}
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getAddress() {
		if (StringUtils.isBlank(address)) {
			return null;
		}
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getOrgType() {
		if (StringUtils.isBlank(orgType)) {
			return null;
		}
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}

	public boolean getIsAllChildNode() {
		return isAllChildNode;
	}

	public void setIsAllChildNode(boolean isAllChildNode) {
		this.isAllChildNode = isAllChildNode;
	}

}
